{# SPDX-FileCopyrightText: © 2014-2018 Siemens AG

   SPDX-License-Identifier: FSFAP
#}
<script src="scripts/jquery-3.6.0.min.js" type="text/javascript"></script>
<script src="scripts/jquery-ui.js" type="text/javascript"></script>
<script src="scripts/select2.full.min.js" type="text/javascript"></script>
<script src="scripts/popper.min.js" type="text/javascript"></script>
<script src="scripts/bootstrap/bootstrap.min.js" type="text/javascript"></script>
<script src="scripts/jquery.cookie.js" type="text/javascript"></script>
<script type="text/javascript">
  function renderSelect2() {
    if(!$('.ui-render-select2').attr("size") > 0) {
      $('.ui-render-select2').each(function() {
        var dropdownParent = $(document.body);
        if ($(this).parents('.modal').length !== 0) {
          dropdownParent = $(this).parents('.modal');
        }
        $(this).select2({
          width: 'style',
          dropdownAutoWidth : true,
          dropdownParent: dropdownParent
        });
      });
    }
  }
  $(document).ready(function() {
    renderSelect2();
    $('#topBanner').on('closed.bs.alert', function () {
      $.cookie("close_banner", 1, {
        secure: (location.protocol === 'https:')
      });
    });
  });
</script>
{{ scripts }}
